package com.mifengs.moduletwo.di.module;

import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.moduletwo.DaggerDemoContract;
import com.mifengs.moduletwo.DaggerDemoPresent;

import dagger.Module;
import dagger.Provides;

@Module
public class DaggerDemoModule {

    public final DaggerDemoContract.View mView;


    public DaggerDemoModule(DaggerDemoContract.View mView) {
        this.mView = mView;
    }

    @ActivityScope
    @Provides
    public DaggerDemoPresent providePresenter() {
        return new DaggerDemoPresent(mView);
    }
}
